<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>TweenListObj.as</title>
<link rel="stylesheet" type="text/css" href="../../../SourceStyles.css"/>
</head>

<body><pre><span class="ActionScriptpackage">package</span> <span class="ActionScriptDefault_Text">caurina</span>.<span class="ActionScriptDefault_Text">transitions</span> <span class="ActionScriptBracket/Brace">{</span>
    <span class="ActionScriptReserved">import</span> <span class="ActionScriptDefault_Text">caurina</span>.<span class="ActionScriptDefault_Text">transitions</span>.<span class="ActionScriptDefault_Text">AuxFunctions</span>;
    <span class="ActionScriptASDoc">/**
     * The tween list object. Stores all of the properties and information that pertain to individual tweens.
     *
     * @author        Nate Chatellier, Zeh Fernando
     * @version        1.0.4
     * @private
     */</span>

    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">TweenListObj</span> <span class="ActionScriptBracket/Brace">{</span>
        
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">scope</span>                    <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>;    <span class="ActionScriptComment">// Object affected by this tweening
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">properties</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>;    <span class="ActionScriptComment">// List of properties that are tweened (PropertyInfoObj instances)
</span>            <span class="ActionScriptComment">// .valueStart                    :Number        // Initial value of the property
</span>            <span class="ActionScriptComment">// .valueComplete                :Number        // The value the property should have when completed
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">auxProperties</span>            <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>;    <span class="ActionScriptComment">// Dynamic object containing properties used on this tweening
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">timeStart</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;    <span class="ActionScriptComment">// Time when this tweening should start
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">timeComplete</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;    <span class="ActionScriptComment">// Time when this tweening should end
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">useFrames</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span>;    <span class="ActionScriptComment">// Whether or not to use frames instead of time
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">transition</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Function</span>;    <span class="ActionScriptComment">// Equation to control the transition animation
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">onStart</span>                    <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Function</span>;    <span class="ActionScriptComment">// Function to be executed on the object when the tween starts (once)
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">onUpdate</span>                    <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Function</span>;    <span class="ActionScriptComment">// Function to be executed on the object when the tween updates (several times)
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">onComplete</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Function</span>;    <span class="ActionScriptComment">// Function to be executed on the object when the tween completes (once)
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">onOverwrite</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Function</span>;    <span class="ActionScriptComment">// Function to be executed on the object when the tween is overwritten
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">onError</span>                    <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Function</span>;    <span class="ActionScriptComment">// Function to be executed if an error is thrown when tweener exectues a callback (onComplete, onUpdate etc)
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">onStartParams</span>            <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>;        <span class="ActionScriptComment">// Array of parameters to be passed for the event
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">onUpdateParams</span>            <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>;        <span class="ActionScriptComment">// Array of parameters to be passed for the event
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">onCompleteParams</span>            <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>;        <span class="ActionScriptComment">// Array of parameters to be passed for the event
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">onOverwriteParams</span>        <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Array</span>;        <span class="ActionScriptComment">// Array of parameters to be passed for the event
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">rounded</span>                    <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span>;    <span class="ActionScriptComment">// Use rounded values when updating
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">isPaused</span>                    <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span>;    <span class="ActionScriptComment">// Whether or not this tween is paused
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">timePaused</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;    <span class="ActionScriptComment">// Time when this tween was paused
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">isCaller</span>                    <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span>;    <span class="ActionScriptComment">// Whether or not this tween is a &quot;caller&quot; tween
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">count</span>                    <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;    <span class="ActionScriptComment">// Number of times this caller should be called
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">timesCalled</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;    <span class="ActionScriptComment">// How many times the caller has already been called (&quot;caller&quot; tweens only)
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">waitFrames</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span>;    <span class="ActionScriptComment">// Whether or not this caller should wait at least one frame for each call execution (&quot;caller&quot; tweens only)
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">skipUpdates</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;    <span class="ActionScriptComment">// How many updates should be skipped (default = 0; 1 = update-skip-update-skip...)
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">updatesSkipped</span>            <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;    <span class="ActionScriptComment">// How many updates have already been skipped
</span>        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">hasStarted</span>                <span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span>;    <span class="ActionScriptComment">// Whether or not this tween has already started
</span>
        <span class="ActionScriptComment">// ==================================================================================================================================
</span>        <span class="ActionScriptComment">// CONSTRUCTOR function -------------------------------------------------------------------------------------------------------------
</span>
        <span class="ActionScriptASDoc">/**
         * Initializes the basic TweenListObj.
         * 
         * @param    p_scope                Object        Object affected by this tweening
         * @param    p_timeStart            Number        Time when this tweening should start
         * @param    p_timeComplete        Number        Time when this tweening should end
         * @param    p_useFrames            Boolean        Whether or not to use frames instead of time
         * @param    p_transition        Function    Equation to control the transition animation
         */</span>
        <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">TweenListObj</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_scope</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span>, <span class="ActionScriptDefault_Text">p_timeStart</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">p_timeComplete</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">p_useFrames</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span>, <span class="ActionScriptDefault_Text">p_transition</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Function</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptDefault_Text">scope</span>            <span class="ActionScriptOperator">=</span>    <span class="ActionScriptDefault_Text">p_scope</span>;
            <span class="ActionScriptDefault_Text">timeStart</span>        <span class="ActionScriptOperator">=</span>    <span class="ActionScriptDefault_Text">p_timeStart</span>;
            <span class="ActionScriptDefault_Text">timeComplete</span>    <span class="ActionScriptOperator">=</span>    <span class="ActionScriptDefault_Text">p_timeComplete</span>;
            <span class="ActionScriptDefault_Text">useFrames</span>        <span class="ActionScriptOperator">=</span>    <span class="ActionScriptDefault_Text">p_useFrames</span>;
            <span class="ActionScriptDefault_Text">transition</span>        <span class="ActionScriptOperator">=</span>    <span class="ActionScriptDefault_Text">p_transition</span>;

            <span class="ActionScriptComment">// Other default information
</span>            <span class="ActionScriptDefault_Text">auxProperties</span>    <span class="ActionScriptOperator">=</span>    <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Object</span><span class="ActionScriptBracket/Brace">()</span>;
            <span class="ActionScriptDefault_Text">properties</span>        <span class="ActionScriptOperator">=</span>    <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Object</span><span class="ActionScriptBracket/Brace">()</span>;
            <span class="ActionScriptDefault_Text">isPaused</span>        <span class="ActionScriptOperator">=</span>    <span class="ActionScriptReserved">false</span>;
            <span class="ActionScriptDefault_Text">timePaused</span>        <span class="ActionScriptOperator">=</span>    <span class="ActionScriptReserved">undefined</span>;
            <span class="ActionScriptDefault_Text">isCaller</span>        <span class="ActionScriptOperator">=</span>    <span class="ActionScriptReserved">false</span>;
            <span class="ActionScriptDefault_Text">updatesSkipped</span>    <span class="ActionScriptOperator">=</span>    0;
            <span class="ActionScriptDefault_Text">timesCalled</span>        <span class="ActionScriptOperator">=</span>    0;
            <span class="ActionScriptDefault_Text">skipUpdates</span>        <span class="ActionScriptOperator">=</span>    0;
            <span class="ActionScriptDefault_Text">hasStarted</span>        <span class="ActionScriptOperator">=</span>    <span class="ActionScriptReserved">false</span>;
        <span class="ActionScriptBracket/Brace">}</span>


        <span class="ActionScriptComment">// ==================================================================================================================================
</span>        <span class="ActionScriptComment">// OTHER functions ------------------------------------------------------------------------------------------------------------------
</span>    
        <span class="ActionScriptASDoc">/**
         * Clones this tweening and returns the new TweenListObj
         *
         * @param    omitEvents        Boolean            Whether or not events such as onStart (and its parameters) should be omitted
         * @return                    TweenListObj    A copy of this object
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">clone</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">omitEvents</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">TweenListObj</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">nTween</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">TweenListObj</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">TweenListObj</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">scope</span>, <span class="ActionScriptDefault_Text">timeStart</span>, <span class="ActionScriptDefault_Text">timeComplete</span>, <span class="ActionScriptDefault_Text">useFrames</span>, <span class="ActionScriptDefault_Text">transition</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">properties</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">()</span>;
            <span class="ActionScriptReserved">for</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">pName</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptReserved">in</span> <span class="ActionScriptDefault_Text">properties</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">properties</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">pName</span><span class="ActionScriptBracket/Brace">]</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">properties</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">pName</span><span class="ActionScriptBracket/Brace">]</span>.<span class="ActionScriptDefault_Text">clone</span><span class="ActionScriptBracket/Brace">()</span>;
            <span class="ActionScriptBracket/Brace">}</span>
            <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">skipUpdates</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">skipUpdates</span>;
            <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">updatesSkipped</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">updatesSkipped</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(!</span><span class="ActionScriptDefault_Text">omitEvents</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">onStart</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">onStart</span>;
                <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">onUpdate</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">onUpdate</span>;
                <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">onComplete</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">onComplete</span>;
                <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">onOverwrite</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">onOverwrite</span>;
                <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">onError</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">onError</span>;
                <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">onStartParams</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">onStartParams</span>;
                <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">onUpdateParams</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">onUpdateParams</span>;
                <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">onCompleteParams</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">onCompleteParams</span>;
                <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">onOverwriteParams</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">onOverwriteParams</span>;
            <span class="ActionScriptBracket/Brace">}</span>
            <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">rounded</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">rounded</span>;
            <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">isPaused</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">isPaused</span>;
            <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">timePaused</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">timePaused</span>;
            <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">isCaller</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">isCaller</span>;
            <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">count</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">count</span>;
            <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">timesCalled</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">timesCalled</span>;
            <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">waitFrames</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">waitFrames</span>;
            <span class="ActionScriptDefault_Text">nTween</span>.<span class="ActionScriptDefault_Text">hasStarted</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">hasStarted</span>;

            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">nTween</span>;
        <span class="ActionScriptBracket/Brace">}</span>

        <span class="ActionScriptASDoc">/**
         * Returns this object described as a String.
         *
         * @return                    String        The description of this object.
         */</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">toString</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">returnStr</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptString">&quot;\n[TweenListObj &quot;</span>;
            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;scope:&quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">scope</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, properties:&quot;</span>;
            <span class="ActionScriptReserved">for</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">uint</span> <span class="ActionScriptOperator">=</span> 0; <span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">&lt;</span> <span class="ActionScriptDefault_Text">properties</span>.<span class="ActionScriptDefault_Text">length</span>; <span class="ActionScriptDefault_Text">i</span><span class="ActionScriptOperator">++</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">&gt;</span> 0<span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;,&quot;</span>;
                <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;[name:&quot;</span><span class="ActionScriptOperator">+</span><span class="ActionScriptDefault_Text">properties</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">]</span>.<span class="ActionScriptDefault_Text">name</span>;
                <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;,valueStart:&quot;</span><span class="ActionScriptOperator">+</span><span class="ActionScriptDefault_Text">properties</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">]</span>.<span class="ActionScriptDefault_Text">valueStart</span>;
                <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;,valueComplete:&quot;</span><span class="ActionScriptOperator">+</span><span class="ActionScriptDefault_Text">properties</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">]</span>.<span class="ActionScriptDefault_Text">valueComplete</span>;
                <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;]&quot;</span>;
            <span class="ActionScriptBracket/Brace">}</span> <span class="ActionScriptComment">// END FOR
</span>            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, timeStart:&quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">timeStart</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, timeComplete:&quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">timeComplete</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, useFrames:&quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">useFrames</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, transition:&quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">transition</span><span class="ActionScriptBracket/Brace">)</span>;

            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">skipUpdates</span><span class="ActionScriptBracket/Brace">)</span>        <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, skipUpdates:&quot;</span>        <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">skipUpdates</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">updatesSkipped</span><span class="ActionScriptBracket/Brace">)</span>        <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, updatesSkipped:&quot;</span>    <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">updatesSkipped</span><span class="ActionScriptBracket/Brace">)</span>;

            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">Boolean</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onStart</span><span class="ActionScriptBracket/Brace">))</span>            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, onStart:&quot;</span>            <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onStart</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">Boolean</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onUpdate</span><span class="ActionScriptBracket/Brace">))</span>            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, onUpdate:&quot;</span>            <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onUpdate</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">Boolean</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onComplete</span><span class="ActionScriptBracket/Brace">))</span>        <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, onComplete:&quot;</span>        <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onComplete</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">Boolean</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onOverwrite</span><span class="ActionScriptBracket/Brace">))</span>        <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, onOverwrite:&quot;</span>        <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onOverwrite</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">Boolean</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onError</span><span class="ActionScriptBracket/Brace">))</span>            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, onError:&quot;</span>            <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onError</span><span class="ActionScriptBracket/Brace">)</span>;
            
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onStartParams</span><span class="ActionScriptBracket/Brace">)</span>        <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, onStartParams:&quot;</span>        <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onStartParams</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onUpdateParams</span><span class="ActionScriptBracket/Brace">)</span>        <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, onUpdateParams:&quot;</span>    <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onUpdateParams</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onCompleteParams</span><span class="ActionScriptBracket/Brace">)</span>    <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, onCompleteParams:&quot;</span>    <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onCompleteParams</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onOverwriteParams</span><span class="ActionScriptBracket/Brace">)</span>    <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, onOverwriteParams:&quot;</span> <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">onOverwriteParams</span><span class="ActionScriptBracket/Brace">)</span>;

            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">rounded</span><span class="ActionScriptBracket/Brace">)</span>            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, rounded:&quot;</span>            <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">rounded</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">isPaused</span><span class="ActionScriptBracket/Brace">)</span>            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, isPaused:&quot;</span>            <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">isPaused</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">timePaused</span><span class="ActionScriptBracket/Brace">)</span>            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, timePaused:&quot;</span>        <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">timePaused</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">isCaller</span><span class="ActionScriptBracket/Brace">)</span>            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, isCaller:&quot;</span>            <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">isCaller</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">count</span><span class="ActionScriptBracket/Brace">)</span>                <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, count:&quot;</span>                <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">count</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">timesCalled</span><span class="ActionScriptBracket/Brace">)</span>        <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, timesCalled:&quot;</span>        <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">timesCalled</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">waitFrames</span><span class="ActionScriptBracket/Brace">)</span>            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, waitFrames:&quot;</span>        <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">waitFrames</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">hasStarted</span><span class="ActionScriptBracket/Brace">)</span>            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;, hasStarted:&quot;</span>        <span class="ActionScriptOperator">+</span> <span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">hasStarted</span><span class="ActionScriptBracket/Brace">)</span>;
            
            <span class="ActionScriptDefault_Text">returnStr</span> <span class="ActionScriptOperator">+=</span> <span class="ActionScriptString">&quot;]\n&quot;</span>;
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">returnStr</span>;
        <span class="ActionScriptBracket/Brace">}</span>
        
        <span class="ActionScriptASDoc">/**
         * Checks if p_obj &quot;inherits&quot; properties from other objects, as set by the &quot;base&quot; property. Will create a new object, leaving others intact.
         * o_bj.base can be an object or an array of objects. Properties are collected from the first to the last element of the &quot;base&quot; filed, with higher
         * indexes overwritting smaller ones. Does not modify any of the passed objects, but makes a shallow copy of all properties.
         *
         * @param        p_obj        Object                Object that should be tweened: a movieclip, textfield, etc.. OR an array of objects
         * @return                    Object                A new object with all properties from the p_obj and p_obj.base.
         */</span>

        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">makePropertiesChain</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span> <span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">Object</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">Object</span><span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptComment">// Is this object inheriting properties from another object?
</span>            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">baseObject</span> <span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">Object</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">p_obj</span>.<span class="ActionScriptDefault_Text">base</span>;
            <span class="ActionScriptReserved">if</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">baseObject</span><span class="ActionScriptBracket/Brace">){</span>
                <span class="ActionScriptComment">// object inherits. Are we inheriting from an object or an array
</span>                <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">chainedObject</span> <span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">Object</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">{}</span>;
                <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">chain</span> <span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">Object</span>;
                <span class="ActionScriptReserved">if</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">baseObject</span> <span class="ActionScriptReserved">is</span> <span class="ActionScriptDefault_Text">Array</span><span class="ActionScriptBracket/Brace">){</span>
                    <span class="ActionScriptComment">// Inheritance chain is the base array
</span>                    <span class="ActionScriptDefault_Text">chain</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">[]</span>;
                    <span class="ActionScriptComment">// make a shallow copy
</span>                    <span class="ActionScriptReserved">for</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">k</span> <span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">Number</span> <span class="ActionScriptOperator">=</span> 0 ; <span class="ActionScriptDefault_Text">k</span><span class="ActionScriptOperator">&lt;</span> <span class="ActionScriptDefault_Text">baseObject</span>.<span class="ActionScriptDefault_Text">length</span>; <span class="ActionScriptDefault_Text">k</span><span class="ActionScriptOperator">++</span><span class="ActionScriptBracket/Brace">)</span> <span class="ActionScriptDefault_Text">chain</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">baseObject</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">k</span><span class="ActionScriptBracket/Brace">])</span>;
                <span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptReserved">else</span><span class="ActionScriptBracket/Brace">{</span>
                    <span class="ActionScriptComment">// Only one object to be added to the array
</span>                    <span class="ActionScriptDefault_Text">chain</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">baseObject</span><span class="ActionScriptBracket/Brace">]</span>;
                <span class="ActionScriptBracket/Brace">}</span>
                <span class="ActionScriptComment">// add the final object to the array, so it&apos;s properties are added last
</span>                <span class="ActionScriptDefault_Text">chain</span>.<span class="ActionScriptDefault_Text">push</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">p_obj</span><span class="ActionScriptBracket/Brace">)</span>;
                <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">currChainObj</span> <span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">Object</span>;
                <span class="ActionScriptComment">// Loops through each object adding it&apos;s property to the final object
</span>                <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">len</span> <span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">Number</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">chain</span>.<span class="ActionScriptDefault_Text">length</span>;
                <span class="ActionScriptReserved">for</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">:</span> <span class="ActionScriptDefault_Text">Number</span> <span class="ActionScriptOperator">=</span> 0; <span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">&lt;</span> <span class="ActionScriptDefault_Text">len</span> ; <span class="ActionScriptDefault_Text">i</span> <span class="ActionScriptOperator">++</span><span class="ActionScriptBracket/Brace">){</span>
                    <span class="ActionScriptReserved">if</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">chain</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">][</span><span class="ActionScriptString">&quot;base&quot;</span><span class="ActionScriptBracket/Brace">]){</span>
                        <span class="ActionScriptComment">// deal with recursion: watch the order! &quot;parent&quot; base must be concatenated first!
</span>                        <span class="ActionScriptDefault_Text">currChainObj</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">AuxFunctions</span>.<span class="ActionScriptDefault_Text">concatObjects</span><span class="ActionScriptBracket/Brace">(</span> <span class="ActionScriptDefault_Text">makePropertiesChain</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">chain</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">][</span><span class="ActionScriptString">&quot;base&quot;</span><span class="ActionScriptBracket/Brace">]</span> <span class="ActionScriptBracket/Brace">)</span>, <span class="ActionScriptDefault_Text">chain</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">])</span>;
                    <span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptReserved">else</span><span class="ActionScriptBracket/Brace">{</span>
                        <span class="ActionScriptDefault_Text">currChainObj</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">chain</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptDefault_Text">i</span><span class="ActionScriptBracket/Brace">]</span> ;
                    <span class="ActionScriptBracket/Brace">}</span>
                    <span class="ActionScriptDefault_Text">chainedObject</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">AuxFunctions</span>.<span class="ActionScriptDefault_Text">concatObjects</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">chainedObject</span>, <span class="ActionScriptDefault_Text">currChainObj</span> <span class="ActionScriptBracket/Brace">)</span>;
                <span class="ActionScriptBracket/Brace">}</span>
                <span class="ActionScriptReserved">if</span><span class="ActionScriptBracket/Brace">(</span> <span class="ActionScriptDefault_Text">chainedObject</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">&quot;base&quot;</span><span class="ActionScriptBracket/Brace">]){</span>
                    <span class="ActionScriptReserved">delete</span> <span class="ActionScriptDefault_Text">chainedObject</span><span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptString">&quot;base&quot;</span><span class="ActionScriptBracket/Brace">]</span>;
                <span class="ActionScriptBracket/Brace">}</span>
                <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">chainedObject</span>;    
            <span class="ActionScriptBracket/Brace">}</span><span class="ActionScriptReserved">else</span><span class="ActionScriptBracket/Brace">{</span>
                <span class="ActionScriptComment">// No inheritance, just return the object it self
</span>                <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">p_obj</span>;
            <span class="ActionScriptBracket/Brace">}</span>
        <span class="ActionScriptBracket/Brace">}</span>
        

    <span class="ActionScriptBracket/Brace">}</span>
    
    

    
<span class="ActionScriptBracket/Brace">}</span>
</pre></body>
</html>
